
// 显示时间
export const handleNowTime = (date) => {
    let year = date.getFullYear();
    let month = date.getMonth() + 1;;
    month = month < 10 ? (`0${month}`) : month;
    let day = date.getDate();
    day = day < 10 ? (`0${day}`) : day;
    let hour = date.getHours();
    let minute = date.getMinutes();
    minute = minute < 10 ? (`0${minute}`) : minute;
    let second = date.getSeconds();
    second = second < 10 ? (`0${second}`) : second;
    const START_TIME = `${year}-${month}-${day} ${hour}:${minute}:${second}`;
    return START_TIME;
}